%option noyywrap
%{
   #include<stdio.h>
   #include<iostream>
   #include<string>
   #include<map>
   #include<set>
   using namespace std;
   long int id=201492166;
   char* name="byw";
   unsigned long int num; 
   long int count1=0,count2=0;
   set<string> table;
%}
NAME  NAME$

%%
^[0-9]{9} { 
     cout<<id;
}

{NAME} {
     cout<<name;
}

[0-9]+(\.[0-9]+)? {
     count1++; 
     table.insert(yytext);
     num=(unsigned long int)(atof(yytext)*2+id+0.5);
     cout<<num;
}
. {ECHO;}
%%

int main()
{
   yylex();
   count2=table.size();
   printf("int number:%d\t unique's number:%d\n",count1,count2);
   return 0;
}

